package com.richpencil.utils;

import com.google.common.base.Optional;
import com.google.common.primitives.Longs;

public class LongHelper {

    public static Long TryParse(String value) {
        Long l_value= Longs.tryParse(value);
        if (!Optional.fromNullable(l_value).isPresent()){
            l_value=0l;
        }
        return l_value;
    }
}
